package org.googlecode.viewt.core.tools.web;

public class ActionBeanRelationGenerator extends BaseWebGenerator {
	private boolean generated = false;

	public String getLoggerCategory() {
		return "ActionBeanRelationGenerator";
	}

	public String getTemplate(String actionName) throws Exception {
		return "xml_ACTBEAN.vm";
	}

	public String getOutputFile(String actionName) throws Exception {
		if (!(this.generated)) {
			this.generated = true;
		}
		return WebActionUtil.formBeanRelationFile(getDestPath(),
				getActionsDef().getModuleName());
	}

	public boolean needGenerate(String actionName) throws Exception {
		return (!(this.generated));
	}

	public void setupContext() throws Exception {
	}

	public void setupContext(String actionName) throws Exception {
	}

	public void cleanContext(String actionName) throws Exception {
	}

	public void cleanContext() throws Exception {
	}
}